3.1931 \(\int \frac{a+b x}{a^2+2 a b x+b^2 x^2} \, dx\)

Optimal. Leaf size=10 \[ \frac{\log (a+b x)}{b} \]

[Out]

Log[a + b*x]/b

________________________________________________________________________________________

Rubi [A]  time = 0.0024471, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {27, 31} \[ \frac{\log (a+b x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*x)/(a^2 + 2*a*b*x + b^2*x^2),x]

[Out]

Log[a + b*x]/b

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rubi steps

\begin{align*} \int \frac{a+b x}{a^2+2 a b x+b^2 x^2} \, dx &=\int \frac{1}{a+b x} \, dx\\ &=\frac{\log (a+b x)}{b}\\ \end{align*}

Mathematica [A]  time = 0.0011242, size = 10, normalized size = 1. \[ \frac{\log (a+b x)}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)/(a^2 + 2*a*b*x + b^2*x^2),x]

[Out]

Log[a + b*x]/b

________________________________________________________________________________________

Maple [A]  time = 0.001, size = 11, normalized size = 1.1 \begin{align*}{\frac{\ln \left ( bx+a \right ) }{b}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)/(b^2*x^2+2*a*b*x+a^2),x)

[Out]

ln(b*x+a)/b

________________________________________________________________________________________

Maxima [B]  time = 0.950393, size = 30, normalized size = 3. \begin{align*} \frac{\log \left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}{2 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2),x, algorithm="maxima")

[Out]

1/2*log(b^2*x^2 + 2*a*b*x + a^2)/b

________________________________________________________________________________________

Fricas [A]  time = 1.45768, size = 22, normalized size = 2.2 \begin{align*} \frac{\log \left (b x + a\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2),x, algorithm="fricas")

[Out]

log(b*x + a)/b

________________________________________________________________________________________

Sympy [A]  time = 0.063852, size = 7, normalized size = 0.7 \begin{align*} \frac{\log{\left (a + b x \right )}}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(b**2*x**2+2*a*b*x+a**2),x)

[Out]

log(a + b*x)/b

________________________________________________________________________________________

Giac [A]  time = 1.09312, size = 15, normalized size = 1.5 \begin{align*} \frac{\log \left ({\left | b x + a \right |}\right )}{b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(b^2*x^2+2*a*b*x+a^2),x, algorithm="giac")

[Out]

log(abs(b*x + a))/b